also test >1.0 values when converting from float to u8
authorØyvind Kolås <pippin@gimp.org>
Tue, 1 May 2012 11:40:28 +0000 (13:40 +0200)
committerØyvind Kolås <pippin@gimp.org>
Tue, 1 May 2012 11:40:28 +0000 (13:40 +0200)
tests/floatclamp.c

index 953b701a1e680cbf8000ec965a14324741f454cd..617b440d42077191390c32591c5581c669145150 100644 (file)
@@ -56,8 +56,8 @@ main (int    argc,
   int OK = 1;
   babl_init ();
   {
-    float in[][4]   = {{ 0.21582, -0.55, -0.14, 1.0 }};
-    unsigned char out[][4]  = {{ 55, 0, 0, 255 }};
+    float in[][4]   = {{ 0.21582, -0.55, -0.14, 1.0 }, {0.0, 1.0, 2.0, 3.0}};
+    unsigned char out[][4]  = {{ 55, 0, 0, 255 }, {0,255,255,255}};
 
     CHECK_CONV("float -> u8", unsigned char,
         babl_format("R'G'B'A float"),